<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: zhaoyingjie
  Date: 2021/9/24
  Time: 19:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
<%--    ${recruitmentList1}--%>
    <title>轻聘</title>
    <link rel="stylesheet" href="/hire/css/index.css">
    <link rel="icon" href="/hire/imgs/favicon.ico" type="image/x-icon"/>
</head>
<body>
<%@include file="./common/mynav.jsp" %>
${recruitmentList1}
<div class="search">
    <div class="inner">
        <form action="#" class="search-form">
            <input class="search-content" id="title" type="text" placeholder="输入职位" value="${name}">
            <input class="search-button" type="button" value="搜索" onclick="search_name()">
        </form>
        <div class="search-hot">
            <span>热门搜索 : </span>
            <div class="hotwords">
                <ul>
                    <li><a href="javascript:void(0)" onclick="searchhotRecruitment(this)">Android</a></li>
                    <li><a href="javascript:void(0)" onclick="searchhotRecruitment(this)">Java</a></li>
                    <li><a href="javascript:void(0)" onclick="searchhotRecruitment(this)">前端</a></li>
                    <li><a href="javascript:void(0)" onclick="searchhotRecruitment(this)">C</a></li>
                    <li><a href="javascript:void(0)" onclick="searchhotRecruitment(this)">Python</a></li>
                </ul>
            </div>
        </div>
    </div>
</div>
<div class="middler">
    <div class="inner" style="height: 355px;">
        <div class="category-list">
            <ul>
                <c:forEach items="${labeltypeandtag}" var="l" begin="0" end="7">
                    <li>
                        <h2>${l.labelType.name}</h2>
                        <span>|</span>
                        <c:forEach items="${l.tagList}" var="ltl" begin="0" end="4">
                            <a href="javascript:void(0)" onclick="searchtag(this)">
                                    ${ltl.details}
                                <input type="hidden" value="${ltl.details}" >
                                <input type="hidden" value="${ltl.id}">
                            </a>

                        </c:forEach>
                    </li>
                </c:forEach>
            </ul>
        </div>
        <div class="middler-picture">
            <img src="./imgs/banner_pic.jpg" alt="">
        </div>
    </div>
</div>
<!-- 推荐职位 -->
<c:if test="${null!=employee}">
    <div class="hot-positions">
        <div class="inner">
            <div class="title">
                <h2>推荐职位</h2>
            </div>
            <div class="positions-box">
                <div class="box-content">
                    <ul>
                        <c:forEach items="${recruitment1}" var="r" >
                            <li>
                                <div class="job-content">
                                    <div class="job-content-title" onclick="find_rid(this)">
                                        <input type="hidden" value="${r.recruitment.id}">
                                        <a>${r.recruitment.name}</a>
                                        <span>${r.recruitment.salaryLower}K-${r.recruitment.salaryUpper}K</span>
                                    </div>
                                    <div class="job-content-request">
                                        <span>${r.recruitment.education}</span>
                                        <span>${r.recruitment.experience}</span>
                                    </div>
                                    <div class="label">
                                        <c:forEach items="${r.tagList}" var="tt">
                                            <span>${tt}</span>
                                        </c:forEach>
                                    </div>
                                </div>

                                <div class="company-info">
                                    <div class="company-name" onclick="find_cpid(this)">
                                        <input type="hidden" value="${r.company.id}">
                                        <a>${r.company.name}</a>
                                    </div>
                                    <div class="company-address">
                                        <span>${r.company.area}</span>
                                    </div>
                                </div>
                            </li>
                        </c:forEach>
                    </ul>
                </div>
            </div>
                <%--        <div class="hot-btn">--%>
                <%--            <a class="btn" type="button" href="/hire/job/recruitment/recruitment">查看更多</a>--%>
                <%--        </div>--%>
        </div>
    </div>
</c:if>

<!-- 热门职位 -->
<div class="hot-positions">
    <div class="inner">
        <div class="title">
            <h2>热招职位</h2>
        </div>
        <div class="positions-box">
            <div class="box-content">
                <ul>
                    <c:forEach items="${recruitment}" var="r" begin="0" end="8">
                        <li>
                            <div class="job-content">
                                <div class="job-content-title" onclick="find_rid(this)">
                                    <input type="hidden" value="${r.recruitment.id}">
                                    <a>${r.recruitment.name}</a>
                                    <span>${r.recruitment.salaryLower}K-${r.recruitment.salaryUpper}K</span>
                                </div>
                                <div class="job-content-request">
                                    <span>${r.recruitment.education}</span>
                                    <span>${r.recruitment.experience}</span>
                                </div>
                                <div class="label">
                                    <c:forEach items="${r.tagList}" var="tt">
                                        <span>${tt}</span>
                                    </c:forEach>
                                </div>
                            </div>

                            <div class="company-info">
                                <div class="company-name" onclick="find_cpid(this)">
                                    <input type="hidden" value="${r.company.id}">
                                    <a>${r.company.name}</a>
                                </div>
                                <div class="company-address">
                                    <span>${r.company.area}</span>
                                </div>
                            </div>
                        </li>
                    </c:forEach>
                </ul>
            </div>
        </div>
        <div class="hot-btn">
            <a class="btn" type="button" href="/hire/job/recruitment/recruitment">查看更多</a>
        </div>
    </div>
</div>
<!-- 热门企业 -->
<div class="hot-company">
    <div class="inner">
        <div class="title">
            <h2>热门企业</h2>
        </div>
        <div class="company-box">
            <div class="box-content">
                <ul>
                    <c:forEach items="${recruitment}" var="c" begin="0" end="11">
                        <li>
                            <div class="company-content">
                                <div class="logo"><img src="/hire/imgs/company/logo/${c.company.logo}" alt=""></div>
                                <div class="company-name" onclick="search_id(this)">
                                    <input type="hidden" value="${c.company.id}">
                                    <a>${c.company.name}</a>
                                </div>
                                <div class="company-label">
                                    <p>${c.company.financing}</p>
                                    <span class="vline"></span>
                                    <p>${c.company.industryType}</p>
                                </div>
                                <div class="job-info">
                                    <a href="javascript:searchcid(${c.company.id})"><span class="job-num">${c.count}</span>个热招职位</a>
                                </div>
                            </div>
                        </li>
                    </c:forEach>
                </ul>
            </div>
        </div>
        <div class="hot-btn">
            <a class="btn" type="button" href="/hire/job/company/company">查看更多</a>
        </div>
    </div>
</div>
<%@include file="./common/myfooter.jsp" %>
<script src="/hire/js/index.js"></script>
</body>
</html>
